package com.jinly.ryder.deploy.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinly.ryder.common.dao.entity.BaseDO;
import com.jinly.ryder.deploy.service.model.ConfigFileType;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "deploy_config_file", autoResultMap = true)
public class DeployConfigFileDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "deploy_group_id")
    private Integer deployGroupId;

    @TableField(value = "file_name")
    private String fileName;

    @TableField(value = "file_content")
    private byte[] fileContent;

    @TableField(value = "file_type")
    private ConfigFileType fileType;

    @TableField(value = "file_format")
    private String fileFormat;

    /**
     * 操作人
     */
    @TableField(value = "operator")
    private Long operator;
}
